home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / Direct3D / Water / CEnvironment.h < prev    next >
C/C++ Source or Header  |  2001-10-08  |  821b  |  38 lines

  1. //
  2. // CEnvironment
  3. // Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
  4. //
  5.  
  6. #pragma once
  7. #ifndef __CENVIRONMENT_H__
  8. #define __CENVIRONMENT_H__
  9.  
  10.  
  11. class CEnvironment
  12. {
  13. public:
  14.     CEnvironment();
  15.    ~CEnvironment();
  16.  
  17.     HRESULT Initialize(float fSize);
  18.  
  19.     HRESULT OnCreateDevice(IDirect3DDevice8* pDevice);
  20.     HRESULT OnResetDevice();
  21.     HRESULT OnLostDevice();
  22.     HRESULT OnDestroyDevice();
  23.  
  24.     HRESULT SetSurfaces(
  25.         IDirect3DTexture8* pXNeg, IDirect3DTexture8* pXPos, 
  26.         IDirect3DTexture8* pYNeg, IDirect3DTexture8* pYPos,
  27.         IDirect3DTexture8* pZNeg, IDirect3DTexture8* pZPos); 
  28.         
  29.     HRESULT Draw();
  30.  
  31. protected:
  32.     float m_fSize;
  33.  
  34.     IDirect3DDevice8* m_pDevice;
  35.     IDirect3DTexture8* m_pSurf[6];
  36. };
  37.  
  38. #endif // __CENVIRONMENT_H__